package com.itheima.model.dao;

import com.itheima.mapper.BillMapper;
import com.itheima.model.Bill;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class BillDao {
    @Autowired
    private BillMapper billMapper;

    public List<Bill> findBillByCustomerId(Long customerId){
        return billMapper.selectBillByCustomerId(customerId);
    }
}
